<template>
    <div class="p-2">
        <transition>
            <el-tabs v-model="activeTab" @tab-click="handleClick">
                <el-tab-pane label="待审批" name="pendingValuation">
                    <pendingValuation v-if="activeTab == 'pendingValuation'" />
                </el-tab-pane>
                <el-tab-pane label="审批历史" name="pricingHistory">
                    <pricingHistory v-if="activeTab == 'pricingHistory'" />
                </el-tab-pane>
            </el-tabs>
        </transition>
    </div>
</template>
<script setup lang="ts">
import type { TabsPaneContext } from 'element-plus'
import pendingValuation from './components/pendingValuation.vue'
import pricingHistory from './components/pricingHistory.vue'

// const { proxy } = getCurrentInstance() as ComponentInternalInstance;

const activeTab = ref('pendingValuation');

/**
 * tabs切换
 */
const handleClick = (tab: TabsPaneContext, event: Event) => {
    console.log(tab.props.name, event)

};

</script>
<style lang="scss" scoped>
.mb96 {
    margin-bottom: 96px;
}
</style>